.box {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 1.5s linear;
}

.big {
    transform: scale(1.1);
}

.img {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s linear;
    object-fit: cover;
}

.in {
    opacity: 1;
}